Gareth Southgate's side now face hosts Russia or Croatia on Wednesday in Moscow's Luzhniki Stadium for a place in next Sunday's final.
Maguire rose highest to thump home Ashley Young's first-half cross, the eighth of England's 11 goals at this World Cup to come from a set-piece.
And Alli was unmarked to turn home Jesse Lingard's cross against a lacklustre Sweden in Samara.
England keeper Jordan Pickford pulled off three fantastic saves to keep Sweden out - first turning away a Marcus Berg header, then producing a low stop from Viktor Claesson and finally tipping Berg's shot over the bar.
England will discover their semi-final opponents later, with Russia and Croatia kicking off at 19:00 BST.
The Three Lions are in the last four for only the third time. They went on to win their home tournament in 1966 but lost to West Germany on penalties in 1990.